<?php
namespace app\Admin\model;

use think\Db;
use think\Model;

class Label extends Model
{
	public function get_LabelList()
	{
		return Db::name('label')->select();
	}

	public function get_LabelAdd($data)
	{
		return Db::table('tp_label')->insert($data);
	}

	public function get_LabelOne($id)
	{
		return Db::name('label')->where(array('id'=>$id))->find();
	}

	public function get_LabelEdit($data,$id)
	{
		return Db::table('tp_label')->where(array('id'=>$id))->update($data);
	}

	public function get_LabelDel($id)
	{
		return Db::table('tp_label')->where(array('id'=>$id))->delete();
	}
}